package day05;

public class MethodDemo1 {
	public static void main(String[] args) {
		
		say();
		say("nba");
		say("zhangsan",25); //String name="zhangsan",int age=25
		say("lisi",66);
	}
	public static void say(){
		System.out.println("666");
	}
	public static void say(String name){
		System.out.println("大家好我叫"+name+"今年44岁了");
	}
	public static void say(String name,int age){
		if (age>=50){
			return;
		}
		System.out.println("大家好，我叫"+name+"，今年"+age+"岁了");
	}
}
